package com.jereh.topnews.demo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;
import android.view.View;
import android.widget.Toast;

import com.jereh.topnews.R;
import com.jereh.topnews.widget.IGravity;
import com.jereh.topnews.widget.IToast;

public class ToastTestActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_toast_test);
    }
    public void onToast(View view) {
        switch (view.getId()) {
            case R.id.toast:
                IToast.makeText(this, "收藏成功", new IGravity(Gravity.CENTER, 0, 0), Toast.LENGTH_LONG, R.mipmap.abc_btn_rating_star_on_mtrl_alpha).show();
                break;
            case R.id.dialog:
                break;
            case R.id.popup:
                break;
        }
    }
}
